package cn.wolfcode.mapper;


import cn.wolfcode.domain.Emp;
import cn.wolfcode.domain.PageResult;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

public interface EmpMapper {
    List<Emp> list(String  name, Integer gender, Date begin, Date end);

    void delete(@Param("ids") List<Integer> ids);

    void save(Emp emp);
    @Select("select * from emp where id=#{id}")
    Emp selById(Long id);

    void update(Emp emp);

    Emp login(Emp emp);

    void delByDeptId(Long id);
}
